From: Julien Grall Date: Wed, 28 Aug 2013 14:47:17 +0000 (+0100) Subject: xen/dts: Don't check the number of address and size cells in process_cpu_node X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6395 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=50718fc3c5981df5c393a97b7b5a0dcc9ba78004;p=xen.git xen/dts: Don't check the number of address and size cells in process_cpu_node CPU nodes are not required to have #address-cells == 1 and #size-cells == 0, so don't check for that (see Linux Documentation/devicetree/booting-without-of.txt Section III.5.a). In some OMAP5 device, tree, these 2 properties are not correctly set. Therefore, Xen will only able to handle 1 CPU. Signed-off-by: Julien Grall Acked-by: Ian Campbell CC: andrii.anisov@globallogic.com CC: baozich@gmail.com --- diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index 3a3c99cbd7..c4f0f2cfde 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -414,12 +414,6 @@ static void __init process_cpu_node(const void *fdt, int node, const u32 *cell; paddr_t start, size; - if ( address_cells != 1 || size_cells != 0 ) - { - early_printk("fdt: node `%s': invalid #address-cells or #size-cells", - name); - return; - } prop = fdt_get_property(fdt, node, "reg", NULL); if ( !prop )